Skip to content

fix: beautify template package.json#361

Closed
liweijie0812 wants to merge 6 commits into
stackblitz-labs:mainfrom
liweijie0812:fix/format/package.json
Closed

fix: beautify template package.json#361
liweijie0812 wants to merge 6 commits into
stackblitz-labs:mainfrom
liweijie0812:fix/format/package.json

Conversation

@liweijie0812

@liweijie0812 liweijie0812 commented Apr 30, 2025

Copy link
Copy Markdown
Contributor
image

@liweijie0812 liweijie0812 changed the title fix: beautify package.json fix: beautify template package.json Apr 30, 2025
Comment thread packages/cli/index.ts
hijackDeps(realDeps, pJson.peerDependencies);
}

await writePackageJSON(pJsonPath, pJson);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like a mistake? it means writeDeps will no longer write the package.json, which is the whole point of this function 😬

the line below is a restore function, i.e. it shouldn't be doing any reformatting as its meant to restore the original raw contents

this line is meant to write the formatted new JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants